package com.eastfair.model;

import com.eastfair.annotation.annotation.vo.VoInfo;
import com.eastfair.annotation.model.BaseVoGroupClass;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 租户规则表（合并数据用）
 * </p>
 *
 * @author ligang
 * @since 2022-07-12
 */
@Data
@ApiModel(value = "TenantRuleVO", description = "租户规则表（合并数据用）")
public class TenantRuleVO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @VoInfo(groups = {BaseVoGroupClass.all.class})
    private Long id;

    /**
     * 系统id
     */
    @ApiModelProperty(value = "系统id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long systemId;
    /**
     * 合并id
     */
    @ApiModelProperty(value = "合并id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long mergeId;
    /**
     * 表名
     */
    @ApiModelProperty(value = "表名")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Size(max = 255, message = "表名长度不能超过255")
    private String tableName;
    /**
     * 项目id（分库分表用）
     */
    @ApiModelProperty(value = "项目id（分库分表用）")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Long projectId;
}
